package com.example.myproject.repository;

import com.example.myproject.model.User;
import com.example.myproject.model.UserRoleRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface UserRoleRelationRepository extends JpaRepository<UserRoleRelation, Long> {
    Set<UserRoleRelation> findAllByUserId(Long userId);

    List<UserRoleRelation> findByUser(User user);
}


